<php>$sCommentLevelEven=$floor%2==0?"comment-level-odd":'comment-level-even';
	 $sCommentEven=$commentkey%2==0?"comment-odd":'comment-even';</php>
{if empty($comment['comment_parentid'])}
<ol id="comment-list" class="comment-list">
{d*else}
<div class="comment-children" id="comment-children-{$comment['comment_parentid']}">
	<ol class="comment-list" id="comment-list-{$comment['comment_parentid']}" >
{/if}
<li id="li-comment-{$comment['comment_id']}" class="comment comment-alt comment-body {if $comment['user_id']>0}comment-by-author{/if} {if !empty($comment['comment_parentid'])}comment-parent{d*else}comment-child{/if} {if !empty($comment['comment_parentid'])}{$sCommentLevelEven}{/if} {$sCommentEven} comment-depth-{$floor}">
	 <div id="comment-{$comment['comment_id']}">
		 <div class="comment-author">
				<img class="avatar" src="{if $comment['user_id']>0}{:Blog_Extend::getGravatar($comment['user_id'],'small')}{d*else}{:Blog_Extend::getGravatar('','email',array('email'=>$comment['comment_email']))}{/if}" alt="admin" width="{$avatar_size}" height="{$avatar_size}" />
				<cite class="fn">{if !empty($comment['comment_url'])}<a href="{$comment['comment_url']}" rel="{if $nofollow==0}external nofollow{/if}">{$comment['comment_name']}</a>{d*else}{$comment['comment_name']}{/if}</cite>
			</div>
			<div class="comment-meta">
				<a href="#comment-{$comment['comment_id']}">{$comment['create_dateline']|date=$dateformat,**}</a>
			</div>
			<div class="comment-rss">
			 <a href="{:G::U('feed/comments?comment_id='.$comment['comment_id'])}"><img src="{$rss_img}" title="<lang>评论Rss 订阅</lang>" /></a>
			</div>
			{if $comment['comment_isreplymail']==1}
			<div class="comment-replyemail">
			 <img src="{$replyemail_img}" title="<lang>评论回复邮件通知</lang>" />
			</div>
			{/if}
			{if $comment['comment_isshow']==0}
			<div class="comment-audit-warning">
			<lang>你的评论需要审核才能够显示</lang>
			</div>
			{/if}
			<p class="comment-body">{$comment['comment_content']|Ubb_Extend+convertUbb=1|Global_Extend+replaceEmot}</p>
			<div class="comment-block">
				<a rel="external nofollow" class="fastreply" href="javascript:void(0);" onclick="AddText('{:Blog_Extend::getCommentReply($comment)}');return false;"><lang>回复</lang></a>
				<a rel="external nofollow" class="repquote" href="javascript:void(0);" onclick="AddText('{:Blog_Extend::getCommentQuote($comment)}');return false;"><lang>引用</lang></a>
			</div>
			{if $floor!=$thread_comments_depth}
			<div class="comment-reply">
				<a href="#comment-{$comment['comment_id']}" rel="nofollow" onclick="commentReply({$comment['comment_id']},this)"><lang>回复</lang></a>
			</div>{/if}
	</div>
</li>
{if empty($comment['comment_parentid'])}
</ol>
{d*else}
</ol>
</div>
{/if}